1 Tracking Bad Apples : Reporting the Origin of Null and Undefined Value Errors ∗

نویسندگان

  • Michael D. Bond
  • Nicholas Nethercote
  • Stephen W. Kent
  • Samuel Z. Guyer
  • Kathryn S. McKinley
چکیده

Programs sometimes crash due to unusable values, for example, when Java and C# programs dereference null pointers and when C and C++ programs use undefined values to affect program behavior. A stack trace produced on such a crash identifies the effect of the unusable value, not its cause, and is often not much help to the programmer. This paper presents efficient origin tracking of unusable values; it shows how to record where these values come into existence, correctly propagate them, and report them if they cause an error. The key idea is value piggybacking: when the original program stores an unusable value, value piggybacking instead stores origin information in the spare bits of the unusable value. Modest compiler support alters the program to propagate these modified values through operations such as assignments and comparisons. We evaluate two implementations: the first tracks null pointer origins in a JVM, and the second tracks undefined value origins in a memorychecking tool built with Valgrind. These implementations show that origin tracking via value piggybacking is fast and often useful, and in the Java case, has low enough overhead for use in a production environment. ∗ This work is supported by an Intel fellowship, NSF CCF-0429859, NSF CCR-0311829, NSF EIA-0303609, DARPA F33615-03-C-4106, Intel, IBM, and Microsoft. Any opinions, findings and conclusions expressed herein are the authors’ and do not necessarily reflect those of the sponsors. Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. OOPSLA’07, October 21–25, 2007, Montréal, Québec, Canada. Copyright c © 2007 ACM 978-1-59593-786-5/07/0010. . . $5.00

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Investigating the Effect of Senior Managers' Compliance in Reporting Nurses' Treatment Errors in Pediatric Wards

Background: The occurrence of medical errors in therapeutic centers is important due to its critical nature in terms of health, patient safety, and notable clinical and economic outcomes. One of the solutions to manage this problem in the field of nursing is error reporting and recording. Error reporting, on one hand, improves patient care quality and safety and; on the other hand, provides val...

متن کامل

Saturated Neural Adaptive Robust Output Feedback Control of Robot Manipulators:An Experimental Comparative Study

In this study, an observer-based tracking controller is proposed and evaluatedexperimentally to solve the trajectory tracking problem of robotic manipulators with the torque saturationin the presence of model uncertainties and external disturbances. In comparison with the state-of-the-artobserver-based controllers in the literature, this paper introduces a saturated observer-based controllerbas...

متن کامل

Investigating the components of nursing errors reporting in selected hospitals of Tehran University of Medical Sciences in 2020

Abstract Introduction: err is human. Error is considered as a part of reality and an integral part of human life. Error reporting is defined as a strategic indicator for error prevention. Nursing managers use management measures and strategies to create an climate in the workplace that nurses increase the rate of reporting errors without fear of the consequences of error reporting. Aim: The p...

متن کامل

The attitudes of nurses towards the occurrence and reporting of nursing errors in selected hospitals of Tehran University of Medical Sciences in 2019

  Introduction: Nurses have an undeniable role in preventing nursing and medical errors, and evaluating their attitude towards error reporting, as a strategic indicator, can help nursing managers in preventing errors and improving patient safety and quality of nursing care. Therefore, this study was conducted with the aim of determining the attitude of nurses towards the occurrence and reporti...

متن کامل

Refusal in Reporting Medication Errors from the Viewpoints of Nursing Students in Arak University of Medical Sciences

Introduction: Reporting medication errors leads to saving patients' wellbeing and safety and also is counted as a valuable information source for preventing further mistakes in future. The aim of this study was to determine the causes for refusing to report medication errors from the viewpoints of nursing students. Methods: All nursing students of Arak University of Medical Sciences (n=76) wer...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007